<?php
/**
 * 控制器基类
 */
class Controller extends Delegate {
  
    /**
     * 初始化控制器基类
     * 
     * @return void
     */
	public static function init() 
	{
		self::addObject(new View());
	}

	/**
	 * 路径跳转
	 * @param string $url
	 * @param int $time
	 * @param string $message
	 * @param bool $isConvert
	 * @return void
	 */
	public function redirect($url, $time=0, $message='', $isConvert=false) //默认不转换url huanran.zhao
	{
		if (empty($url)) $url = CONTROLLER_NAME;
		redirect(__ROOT__ . $url, $time, $message, $isConvert);
	}
	
}